package com.cn.demo4.dao;

import com.cn.demo4.model.UserModel;

import java.util.List;

public interface UserDao {
    int add(UserModel userModel);

    boolean findByUserName(String userName);

    UserModel findByPhoneAndPassword(UserModel userModel);

    int del(Integer id);

    UserModel findById(Integer id);

    int edit(UserModel userModel);

    int editPassword(UserModel userModel);

    List<UserModel> findAll(UserModel userModel);

    int getCount(UserModel userModel);

    UserModel findByPhone(String phone);

}
